package com.itaem.community.modules.patrol.record.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.itaem.community.core.entity.Entity;
import java.time.LocalDateTime;

import com.sun.org.apache.bcel.internal.generic.RETURN;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import net.bytebuddy.asm.Advice;

/**
 * <p>
 * 巡逻记录
 * </p>
 *
 * @author tomato
 * @since 2020-10-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("patrol_record")
@ApiModel(value="PatrolRecordEntity对象", description="巡逻记录")
public class PatrolRecordEntity extends Entity {

    private static final long serialVersionUID = 1L;



    @ApiModelProperty(value = "巡逻人id")
    private Integer workerId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "巡逻打卡时间")
    private LocalDateTime patrolTime;

    @ApiModelProperty(value = "巡逻任务地点id")
    private Integer patrolLocationId;

    @ApiModelProperty(value = "巡逻点经度")
    private Double longitude;

    @ApiModelProperty(value = "巡逻点纬度")
    private Double latitude;

    @ApiModelProperty(value = "打卡状态")
    private Boolean state;

    @ApiModelProperty(value = "逻辑删除")
    private Boolean deleted;


}
